package cn.rongdao.jrkabao.model.cashcoupon;

import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.bean.cashadvance.HomeBean;
import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 2018/3/14
 */

public class SendTaskCouponModel extends BaseKaMaoModel {

    public static SendTaskCouponModel getInstance() {
        return getPresent(SendTaskCouponModel.class);
    }

    public void execute(Observer<HomeBean.PopUpInfoBean> observer) {
        Observable<HomeBean.PopUpInfoBean> observable = mServletApi.sendTaskCoupon(mParams).map(new HttpFunction<HomeBean.PopUpInfoBean>());
        toSubscribe(observable, observer);
    }
}
